package com.example.springboottest.student.controller;


import com.example.springboottest.student.entity.ScoreNumEntity;
import com.example.springboottest.student.service.ScoreNumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/score_num")
public class ScoreNumController {

    @Autowired
    ScoreNumService scoreNumService;
    @RequestMapping("/getNum/{m_id}")
    public List<ScoreNumEntity> getNum(@PathVariable("m_id") Integer m_id){
        return scoreNumService.getNum(m_id);
    }
}
